package io.github.talelin.sleeve.service.Impl;

import io.github.talelin.sleeve.entity.SpecKey;
import io.github.talelin.sleeve.mapper.SpecMapper;
import io.github.talelin.sleeve.service.SpuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpuServiceImpl implements SpuService {

    @Resource
    private SpecMapper specMapper;

    @Override
    public List<SpecKey> getSpecBySpuId(Long id){
        List<SpecKey> specKeyList = specMapper.getBySpuId(id);
        return specKeyList;
    }
}
